package com.laint.hear.ui.activity;


import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;

import com.laint.hear.R;
import com.laint.hear.app.AppStatusTracker;
import com.laint.hear.ui.base.BaseActivity;
import com.laint.hear.utils.ConstantsValue;


/**
 * Created by leiyingtao on 2016/10/12.
 */

public class WelcomActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        AppStatusTracker.getInstance().setmAppStatus(ConstantsValue.OUTLINE);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void setUpContentView() {
        setContentView(R.layout.activity_welcom,R.string.welcom,MODE_NONE);
    }

    @Override
    protected void setUpData() {
        new  Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(WelcomActivity.this, MainActivity.class);
                startActivity(intent);
                finish();
            }
        },2000);
    }
}
